/* eslint-disable no-console */
/**
 * 最小值
 * @param A 数组
 */
export function minmum(A: number[]): number {
	let min = A[0]

	for (let i = 1; i < A.length; i += 1) {
		if (A[i] < min) {
			min = A[i]
		}
	}

	return min
}

console.log(minmum([0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1]))
